package FiveHomeworkDesign.ChainOfResponsibility;

/**
 * @author 北巷_东坡
 * @date 2022/11/21 21:32
 * @computer 10741
 */
public class Client206 {
    public static void main(String[] args) {
        Officer206 banzhang,paizhang,yingzhang,metting;
        banzhang = new Banzhang206();
        paizhang = new Paizhang206();
        yingzhang = new Yingzhang206();
        metting = new Metting206();

        banzhang.setOfficer(paizhang);
        paizhang.setOfficer(yingzhang);
        yingzhang.setOfficer(metting);

        System.out.println("敌人数量为10时");
        Mission206 mission1 =new Mission206(10);
        banzhang.processRequest(mission1);
        System.out.println("敌人数量为20时");
        Mission206 mission2 =new Mission206(20);
        banzhang.processRequest(mission2);
        System.out.println("敌人数量为100时");
        Mission206 mission3 =new Mission206(100);
        banzhang.processRequest(mission3);
        System.out.println("敌人数量为300时");
        Mission206 mission4 =new Mission206(300);
        banzhang.processRequest(mission4);

    }
}
